"""
MoiCmap colormaps

The name of colormaps are composed of two parts: `name` and `suffix`, and
connected by a `_`.
  - `name`: the name of the colormap.
  - `suffix`: the suffix indicating the properties of the colormap.

Colormap name suffix:
  - `mono`: mono luminance colormap, which the luminances of the colors are
    nearly equal.
  - `vl`: for variance luminance colormap, that is, the luminances of the
    colors are changing quickly. This type of colormaps are unfriendly to
    colorblind people, and also not so good for human perception in the magnitude.
  - `l`: lightened colormap, the hue of the colormap is more variant than
    the normal one to distinguish the magnitude.
  - `d`: darkened colormap.

"""
MOI_CMAP = {
    # natural
    "twilight": ["#f7b058", "#e7a964", "#d6a26f", "#bc9b7c", "#97928b",
                 "#738999", "#64788f", "#556785", "#485579", "#3c426a",
                 "#30305b"],
    "daySky": ["#d8dfe8","#7BADF2","#5481D4","#3F65B0","#29498e"],
    "cityNight": ["#df793a","#a27a67","#6b616a","#52496f","#483772"],
    "glowSunset": ["#fa8289", "#df7b9d", "#bc79a8", "#a276a9", "#9170a8",
                    "#7f6aa7", "#6569a9", "#4368a8", "#2665a2", "#185e99",
                    "#045890"],
    "fruit": ["#e4283f", "#eb543b", "#f0743d", "#f38f3e", "#f5a73d",
              "#f3bf42", "#cdb52c", "#a6aa19", "#7ea007", "#539803", "#008e0f"],
    "temperature": ["#ff6c00", "#ff9f46", "#ffc18d", "#ffdabb", "#ffedde",
                    "#fffefa", "#e6ebff", "#d7e2ff", "#cddcff", "#c7d8ff",
                    "#c1d5ff"],

    # mono
    "Lumi": ["#000000", "#1b1b1b", "#303030", "#474747", "#5e5e5e",
             "#777777", "#919191", "#ababab", "#c6c6c6", "#e2e2e2", "#ffffff"],
    "Red": ["#ff0000", "#ff6846", "#ff9e81", "#ffcfbf", "#ffffff"],
    "OrangeRed": ["#ff4500", "#ff7c4a", "#ffa985", "#ffd4c1", "#ffffff"],
    "Orange": ["#ffa500", "#ffbb58", "#ffd191", "#ffe8c7", "#ffffff"],
    "Brown": ["#a52a2a", "#c3635a", "#dc968d", "#f0cac5", "#ffffff"],
    "Sienna": ["#a0522d", "#bc7b5d", "#d6a691", "#ecd2c6", "#ffffff"],
    "Green": ["#008000", "#5ba04a", "#93bf85", "#c9dfc1", "#ffffff"],
    "DarkGreen": ["#006400", "#528a44", "#8bb07f", "#c5d7be", "#ffffff"],
    "Teal": ["#008080", "#5b9f9e", "#93bebd", "#c9dede", "#ffffff"],
    "DeepSkyBlue": ["#00bfff", "#77cfff", "#abdfff", "#d7efff", "#ffffff"],
    "Blue": ["#0e03fc", "#7f52ff", "#b38bff", "#dcc5ff", "#ffffff"],
    "MidnightBlue": ["#191970", "#5b4c93", "#9184b7", "#c8c0db", "#ffffff"],
    "DarkSlateBlue": ["#483d8b", "#7769a8", "#a499c4", "#d1cbe2", "#ffffff"],
    "Purple": ["#800080", "#a2529f", "#c38bbf", "#e2c5df", "#ffffff"],
    "DarkViolet": ["#9400d3", "#b45bdf", "#d193eb", "#e9c9f5", "#ffffff"],
    "Indigo": ["#4b0082", "#7b48a1", "#a883c0", "#d4c0e0", "#ffffff"],
    "sky": ["#d8dfe8", "#b6cbe7", "#96b6e7", "#7ca3e3", "#6792dc", "#5481d4",
            "#4a75cb", "#4069c2", "#385db8", "#3250ab", "#2d449f"],

    # diverging
    "RdBu_l": ["#fe857c", "#fea68b", "#fdc4a4", "#fddbc3", "#ffede1",
               "#ffffff", "#d5f5f7", "#a8eaf0", "#73dbf1", "#4ac3fd", "#62a5fe"],
    "RdBu": ["#ef0501", "#f95741", "#fc8474", "#ffaea2", "#ffd6d0",
             "#ffffff", "#d4e0ff", "#a5c2ff", "#75a3ff", "#4e80fd", "#325af5"],
    "RdBu_d": ["#7b0902", "#a7372d", "#d25f57", "#f19088", "#fcc8c2",
               "#ffffff", "#c5d5f9", "#84adf3", "#4985dd", "#295bb9", "#083293"],
    "RdGn_l": ["#fc836e", "#fd9f80", "#fdba98", "#ffd1b7", "#ffe8db",
               "#ffffff", "#d9f4d7", "#b1e8b0", "#8cdc8b", "#6cd068", "#47c342"],
    "RdGn": ["#ef0501", "#fa5641", "#ff8473", "#ffaea1", "#ffd6cf",
             "#ffffff", "#d3eed1", "#a6dda5", "#7ccb7b", "#53b752", "#1aa423"],
    "RdGn_d": ["#7b0902", "#9f4132", "#c06f61", "#db9e93", "#efcec8",
               "#ffffff", "#c9dacd", "#95b79c", "#669670", "#3d7847", "#0d5a1d"],
    "BuGn_l": ["#62a5fe", "#63befd", "#81d3f8", "#ade3f7", "#d7f1fb",
               "#ffffff", "#e6f2d2", "#cce5a6", "#add97f", "#83ce5f", "#47c342"],
    "BuGn": ["#575ece", "#6382df", "#7da5eb", "#a7c3f2", "#d4e1f9",
             "#ffffff", "#d0e5d8", "#a2ccb2", "#7bb38d", "#5c9c6a", "#408545"],
    "BuGn_d": ["#083293", "#4d5aa8", "#7c83bb", "#a8add0", "#d4d5e7",
               "#ffffff", "#c8dacb", "#92b59a", "#63946e", "#3b7745", "#0d5a1d"],
    "GnPu_l": ["#74c061", "#8bcc85", "#a4d7a7", "#c1e3c5", "#e0f1e2", 
               "#ffffff", "#f7ebff", "#eed7ff", "#e3c2ff", "#d8abfe", "#cb94fd"],
    "GnPu": ["#108a09", "#4ba74c", "#78c37f", "#a6daac", "#d3edd5", 
             "#ffffff", "#eddcfa", "#dabaf4", "#c699eb", "#b178df", "#9c56d2"],
    "GnPu_d": ["#005300", "#3b7439", "#68966b", "#99b89c", "#cbdbcc", 
               "#ffffff", "#ded3e7", "#bea9cf", "#9d80b6", "#7c599c", "#5b3383"],
    "GnBr_l": ["#47c342", "#7ace68", "#a2d88d", "#c3e4b3", "#e1f2d9",
               "#ffffff", "#fde9dd", "#f9d3bc", "#f4bf9c", "#edad7c", "#e39c5c"],
    "GnBr": ["#408545", "#609e6c", "#83b792", "#aacfb6", "#d4e7da",
             "#ffffff", "#f5ded5", "#e8bdac", "#d99d84", "#c87f5e", "#b46138"],
    "GnBr_d": ["#0d5a1d", "#3b7848", "#639673", "#92b79f", "#c8dace",
               "#ffffff", "#e9d3c9", "#d0a896", "#b67e65", "#995638", "#7a2f0b"],
    "garden": ["#d62b10", "#ea4914", "#f9711f", "#fda748", "#ffd39c",
               "#ffffff", "#cde5a6", "#9acd5e", "#6ab63d", "#4c9e24", "#3b860a"],
    "onion": ["#8224bb", "#b435c8", "#e34ad3", "#fd7fe1", "#ffc2f0",
              "#ffffff", "#e3f6b5", "#c0ec67", "#95db2f", "#65c421", "#29ac16"],
    "OrCy": ["#ba431a", "#d45c20", "#ee7626", "#ff9c57", "#ffcdaa",
             "#ffffff", "#c4f4ee", "#80e8dd", "#47d6cd", "#32c1be", "#18acae"],
    "humidity_d": ["#912e00", "#ad5522", "#c67b40", "#daa65d", "#f0d1a4",
                 "#ffffff", "#afe7eb", "#5dcad8", "#23a4c4", "#007ca9", "#035487"],
    "RdOrCyBu": ["#c12926", "#da6238", "#e78f47", "#edb463", "#f6d698",
                 "#ffffff", "#93eff1", "#35d7f4", "#00b6fd", "#1e87f3", "#5848c3"],
    "hotcold": ["#050f76", "#006acc", "#52a2f2", "#afd6d8", "#d2edf6",
                "#ffffff", "#fbeac0", "#ffb244", "#fe7026", "#d90000", "#7c0600"],


    # multicolor
    "jet_vl": ["#1600bd","#0566e6","#00aaff","#00ffee","#7FFFD4","#02ed3d",
            "#00cc03","#9fed02","#ffed29","#f7b602","#e46701","#d00101"],
    "jet": ["#2a64d8", "#008cdf", "#20abd4", "#00bfcc", "#2ecfb4",
             "#1ac185", "#37b14d", "#2fba3d", "#29c227", "#6ecc2d",
             "#9ad53a", "#bedd33", "#e2e430", "#ecce25", "#f2b825",
             "#ed9105", "#e46701", "#db4400", "#d00101"],
    "rainbow_mono": ["#e66cc3", "#aa86eb", "#4a9bf7", "#00a7e6", "#00acc2",
                      "#08ab99", "#55a96f", "#88a248", "#b89435", "#e17f45",
                      "#fb6871"],
    "rainbow_vl": ["#e600d2", "#9c08eb", "#461df2", "#0075ee", "#00d5f7",
                    "#7fffd4", "#04e72e", "#8dea00", "#f2d611", "#ee8700",
                    "#d00101"],
    "Spectral": ["#9d0642", "#d0594e", "#ec935a", "#f8c36b", "#f0f089",
                 "#daffbd", "#9fffcf", "#11e7db", "#25bddf", "#3486dd", "#6b47ab"],
    "humidity": ["#f9e19d", "#e6dd8d", "#cdda81", "#a9da80", "#7ad485",
                 "#39ca8f", "#04bbb3", "#32a6b7", "#1f8da9", "#066a92", "#144373"],
    "humidity_vl": ["#c06b24", "#eaa559", "#e6d03e", "#9cb637", "#62a043",
                    "#29b626", "#4ed1a6", "#45ecf6", "#5ec8ed", "#389cd1",
                    "#1e45ad"],
    "humidity2": ["#fcf9f2", "#e8ecd7", "#c9e1c3", "#a2dcbf", "#6fd5c8", 
                  "#42c6cf", "#03b5d5", "#00a6d6", "#2097d3", "#277fca", "#4364bb"],
}

MOI_CMAP2 = {
    # div，正常亮度，两侧 L = 40
    # Rd: "#bd1200", Bu: "#1c50dd"
    "RdBu": ["#bd1200", "#db7362", "#f2baaf", "#ffffff", "#b0c8f9", "#6590ed", "#1c50dd"],
    "RdBu2": ["#a90401", "#c94c1f", "#e57d42", "#f7aa7b", "#fdd5bd", "#ffffff", "#bcdefb", "#77bcf5", "#3d96e8", "#236dd3", "#203fbd"],
    "RdGn": ["#b5242a", "#d5766f", "#eebab5", "#ffffff", "#b2ceaf", "#679e62", "#036e02"],
    "BuGn": ["#2c57c4", "#6e91db", "#b5c8ef", "#ffffff", "#b2ceaf", "#679e62", "#036e02"],
    "GnPu": ["#036e02", "#679e62", "#b2ceaf", "#ffffff", "#debbe6", "#bb78cb", "#962aae"],
    "BuPu": ["#1c50dd", "#6590ed", "#b0c8f9", "#ffffff", "#e3b9e8", "#c473cf", "#a112b3"],
    "BrGn": ["#742e25", "#99513d", "#bc775b", "#dea184", "#f3cfbd", "#ffffff", "#afe2d5", 
             "#64c1af", "#319b8e", "#0e746c", "#00504a"],

    # div
    "GYPu": ["#036e02", "#408a28", "#68a645", "#95c478", "#cae2bc", "#ffffff", "#f7cef1", "#eb9de2", "#da70c9", "#c548a7", "#b01083"],
    "GnPu2": ["#066b4e", "#0b916a", "#41b78d", "#91dcbd", "#ccf1e1", "#ffffff", "#f1e4ff", "#ddc2f7", 
 "#be93de", "#a267c8", "#8638b5"],
    "prec_div": ["#a00549", "#c65a5f", "#e69877", "#f5caa5", "#ffffff", "#9ce8b7", "#1cbdc5", "#008bd1", "#1e58c3"],
    "prec_div2": ["#b61362", "#cf6b6f", "#eb9583", "#f6c9ab", "#ffffff", "#aadedb", "#48b8d6", "#008bd1", "#1e58c3"],
    "prec_div3": ["#89083e", "#bc575f", "#d78e7c", "#e7bca4", "#f6e3d4", "#ffffff", "#d1eee9", "#8ad1dc", "#35aadd", "#0078d0", "#203ca3"],
    "garden": ["#d62b10", "#ea4914", "#f9711f", "#fda748", "#ffd39c",
               "#ffffff", "#cde5a6", "#9acd5e", "#6ab63d", "#4c9e24", "#3b860a"],
    "onion": ["#8224bb", "#b435c8", "#e34ad3", "#fd7fe1", "#ffc2f0",
              "#ffffff", "#e3f6b5", "#c0ec67", "#95db2f", "#65c421", "#29ac16"],
    "OrCy": ["#ba431a", "#d45c20", "#ee7626", "#ff9c57", "#ffcdaa",
             "#ffffff", "#c4f4ee", "#80e8dd", "#47d6cd", "#32c1be", "#18acae"],
    "humidity_d": ["#912e00", "#ad5522", "#c67b40", "#daa65d", "#f0d1a4",
                 "#ffffff", "#afe7eb", "#5dcad8", "#23a4c4", "#007ca9", "#035487"],
    "RdOrCyBu": ["#c12926", "#da6238", "#e78f47", "#edb463", "#f6d698",
                 "#ffffff", "#93eff1", "#35d7f4", "#00b6fd", "#1e87f3", "#5848c3"],
    "hotcold": ["#050f76", "#006acc", "#52a2f2", "#afd6d8", "#d2edf6",
                "#ffffff", "#fbeac0", "#ffb244", "#fe7026", "#d90000", "#7c0600"],
    
    # 多色
    "jet": ["#2a64d8", "#008cdf", "#20abd4", "#00bfcc", "#2ecfb4",
             "#1ac185", "#37b14d", "#2fba3d", "#29c227", "#6ecc2d",
             "#9ad53a", "#bedd33", "#e2e430", "#ecce25", "#f2b825",
             "#ed9105", "#e46701", "#db4400", "#d00101"],
    "jet2": ["#3c45cc", "#2258c1", "#0665b3", "#0079ae", "#008ea9",
             "#00a0a0", "#00b085", "#4bb94e", "#94b119", "#c1a700", 
             "#d39600", "#d98000", "#da6800", "#d74600", "#d10f04"],
    "jet3": ["#4042e6", "#1979cf", "#229fc6", "#14c3d0", "#26e1cc", 
             "#17f5a1", "#80f069", "#a6e143", "#d0c11c", "#d59c06", 
             "#e46701", "#d00101"],
    "jet4": ["#3b4f8e", "#21669f", "#007ba9", "#008fa5", "#00a090", 
             "#4ca67f", "#75ab70", "#869c56", "#938b44", "#957536", 
             "#935f2f", "#924c32", "#8c3b39"],
    "jet5": ["#3d51c1", "#0075cf", "#0091ce", "#00a7c8", "#00b29a", 
             "#38b441", "#8ea300", "#c58b00", "#d36a0f", "#be481b", 
             "#a52620"],
    "jet_vl": ["#1600bd","#0566e6","#00aaff","#00ffee","#7FFFD4","#02ed3d",
            "#00cc03","#9fed02","#ffed29","#f7b602","#e46701","#d00101"],
    "wysiwygcont": ["#400f4a", "#000bca", "#004bc0", "#0c6daa", "#20819f", 
                    "#009691", "#32a844", "#59bc04", "#94b206", "#bdad24", 
                    "#fbae5f", "#fcbdb6", "#fed0e6", "#fedffd", "#fffeff"],
    "humidity": ["#f9e19d", "#e6dd8d", "#cdda81", "#a9da80", "#7ad485",
                 "#39ca8f", "#04bbb3", "#32a6b7", "#1f8da9", "#066a92", "#144373"],
    "humidity2": ["#fcf9f2", "#e8ecd7", "#c9e1c3", "#a2dcbf", "#6fd5c8", 
                  "#42c6cf", "#03b5d5", "#00a6d6", "#2097d3", "#277fca", "#4364bb"],
    "humidity3": ["#ffffff", "#f5f1cb", "#e7e397", "#d8db79", "#c6d765", 
                  "#add455", "#88d04c", "#57cb49", "#00c286", "#00b3a8", 
                  "#00a4b6", "#0096be", "#0084c3", "#006eca", "#2250c6"],
    "humidity_vl": ["#c06b24", "#eaa559", "#e6d03e", "#9cb637", "#62a043",
                    "#29b626", "#4ed1a6", "#45ecf6", "#5ec8ed", "#389cd1",
                    "#1e45ad"],

}